PICTools Programmer's Reference
PIC2List PNGText Packet Functions

The P2PktPngText structure is defined as:

 
Copy Code
typedef struct {
   BYTE     Type;
   DWORD    Length;
   char     Key[80];  // including null terminator
   char     Text[1];
} P2PktPngText;

P2LAddPngText

 
Copy Code

P2PktPngText* P2LAddPngText(P2LIST* p2l, const char* Key, DWORD Len, const char* Text)

Add a PngText PIC2List packet with Key and Text.  Key is null-terminated and Text has length Len and does not have to be null-terminated.  If Text is 0, then space is allocated for Text and 0'ed zero'ed.

P2LFindPngText

 
Copy Code

P2PktPngText* P2LFindPngText (const P2LIST* p2l, const char* Key))

P2LFindPngText returns a pointer to the first PngText packet packet of key Keyt. 

P2LFindNextPngText

 
Copy Code

P2PktPngText* P2LFindNextPngText (const P2LIST* p2l, const P2PktPngText* pkt)

P2LFindNextPngText a pointer to the next PngText PIC2List packet with the same key as and following pkt. 

 

 


©2022. Accusoft Corporation. All Rights Reserved.

Send Feedback